home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 32
/
Mac Magazin and MacEasy Magazine CD - Issue 32.iso
/
Grafik & Text
/
speak-sentence-20 Folder
/
Speaking Readme
next >
Wrap
Text File
|
1997-02-02
|
5KB
|
112 lines
Speech Manager BBEdit Extensions V2.00, Freeware 2nd Feb. 1997
Copyright © 1993-97, All Rights Reserved.
By R. Mark Fleming, <MarkF@post.QueensU.CA>, <http://macinfo.ccs.queensu.ca/mark/>
Phone: (613) 545-2039, S-Mail: 521 Albert Street, Kingston, Ontario, Canada, K7K 4M5
=======================================================================================
Two BBEdit Extensions for speaking the selected text using Apple
Speech Manager. Use the Apple's Speech Control panel to select the voice used
by these extensions.
To Install:
Quit BBEdit, if it is running, and place the "SpeakSentence.A" extension file in
the "BBEdit Extensions" folder.
Under BBEdit you fill find two new item in the Extension Menu:
1) Speaking
This is a simple extension that use Apple's new speech manager to 'Talk'
the selected text. If no text is selected, then the whole document
is spoken.
2) Speaking with Dialog
The user is presented with a dialog box with some limited control
over how text is read. The Apple's Speech manager is used to 'Talk'
the selected text. If no text is selected, then the whole document
is spoken.
* You can ask it to spell the text (use option key to default to
spelling) or 'Talk' the text.
* You skip lines starting duplicate sequences of '/', '=', '-', '_', or '*' with or
without spaces between them. Plus lines tarting with /* or // (ie. C and C++ comments).
it also skip lines ending with sequence of characters. Lines with text before and after the
sequence of characters are not skipped.
* You can use the Talk, Stop, Pause, and Continue buttons to
control and replay the text.
* Spell/Talk check button is disabled while talking. If you pause
it, the button is enable, but will only take effect if you press
the talk button which starts talking from the start.
* The exit button is used to return to BBEdit.
BBEdit Error Reporting:
If a Speech Manager error occures BBEdit and BBEdit lite will display one of the
following error numbers:
noSynthFound = -240, // Speech Manager errors
synthOpenFailed = -241,
synthNotReady = -242,
bufTooSmall = -243,
voiceNotFound = -244,
incompatibleVoice = -245,
badDictFormat = -246,
badInputText = -247 // The error message numbers are from the Speech.h:
History...
Version 1.00 Release “Speaking sentences” & “Speaking” module.
Version 1.10 Fix bug were no female voice is installed (error -244).
Added tracking of text being spoken.
Merged both modules into on file: “Speaking”.
If option key is depressed, the default is change to spelling
selected text.
Version 1.11 Fix bug when selected text is scrolled into view.
Add correct version resource for Finder's GetInfo...
Version 1.20 Cleaned up source code to be included with modules.
Feel free to enhance these modules... but give credit were credit
is due (and send me updated source, so I can add it to any
changes I do!).
Version 1.21 Change all NewHandle() calls to callback-Allocate() calls.
Free memory allocated when error occures when allocating speech
channel.
#ifdef StackDebug code to check stack space problem (OS Error 28).
Version 1.22 Converted to Codewarrior Compiler.
Cleaned up code to remove global variables.
Disabled Spelling/Talk button in the dialog when talking.
Version 1.23 Added Resource to tell BBEdit 3.0 stop undo message (Not released)
Version 1.24 Added an option to set default voice name as named in resource STR#
128, index 1 Matching is done with the "starts with" and is NOT
case sensitive. (Yes a POP menu would be nice, but this was quicker
to do, maybe later).
Version 1.25 Change STR# 128 voice matching code to look for any Voice matching in
the STR#. Check in order (index 1 is prefered over index 2, etc...).
March 1st, 1996
Version 1.3 Added support for selecting the voice used from the Speech Control panel.
If this voice can not be found, it falls back on the defaults used in V1.25
Version 1.31 Add Balloon Help to the Dialog
Feb 1st, 1997
Version 2.00 Added code that does not speak repeated characters at the start or end of a line.
Selectable in the Speaking with Dialog version of the BBEdit extension.
Known Problem:
* System Error 28 - Stack has moved into application heap occurs on some machines.
I have been unable to prevent this in older version of Speech
manger, during the process of starting the speech manager,
it is using up all the stack space.
** Mark Fleming, The Author of: several utilites such as:
Apple Media Tool (AMT) FAQ, AMT Extensions,
Mark's Translators, a set of graphical translator (PNG, TIFF, BMP, WMF,
MacPaint, EPS previews, etc...); NetDoctor, a Lab and Network
Maintainer Package, and AppleGuide extension to Omnis7.
For more information check out the following WWW page:
http://macinfo.ccs.queensu.ca/Mark/
**
Disclaimer: Use these extension at your own risk.